                                                                     
                                                                     
                                                                     
                                             
  package net.minecraft.src;

    public class mod_Pixel extends BaseModMp //Note It extends basemod (part of modloader) not block
    {
      public static final Block blockPixel; 
      

     public static int  texturePixelRedId;
     public  static int  texturePixelBlueId;
     public  static int  texturePixelGreenId;
     public  static int  texturePixelYellowId;
     public  static int  texturePixelInactiveRedId;
     public  static int  texturePixelInactiveBlueId;
     public  static int  texturePixelInactiveGreenId;
     public  static int  texturePixelInactiveYellowId;
      
     
     public  static final int  pixelRedId = 2;  
     public  static final int  pixelBlueId = 4;
     public  static final int  pixelGreenId = 6;
     public  static final int  pixelYellowId = 8;
    	 

     public  static final String redPixelName = "red pixel"; 
     public  static final String bluePixelName = "blue pixel"; 
     public  static final String greenPixelName = "green pixel"; 
     public  static final String yellowPixelName = "yellow Pixel"; 
     
     public  static final int  pixelInactiveId=0;
     public  static final int  pixelActiveId=1;
    
     public  static int  pixelBaseId = ReadIdFile.getIdFromFile(BlockPixel.class);
      static
      { 
    	  blockPixel = (new BlockPixel(pixelBaseId)).setHardness(0.2F).setLightValue(0.25F).setStepSound(Block.soundGlassFootstep).setBlockName("pixel").setRequiresSelfNotify();
      }
      
      
      public mod_Pixel()
      {
        ModLoader.registerBlock(blockPixel);
        Item.itemsList[pixelBaseId] = new ItemBlockPixel(pixelBaseId-256, blockPixel).setItemName("pixel");   
  
        
        texturePixelRedId = ModLoader.addOverride("/terrain.png", "/mod/pixelRed.png");
        texturePixelBlueId = ModLoader.addOverride("/terrain.png", "/mod/pixelBlue.png");
        texturePixelGreenId = ModLoader.addOverride("/terrain.png", "/mod/pixelGreen.png");
        texturePixelYellowId = ModLoader.addOverride("/terrain.png", "/mod/pixelYellow.png");
        texturePixelInactiveRedId = ModLoader.addOverride("/terrain.png", "/mod/pixelInactiveRed.png");
        texturePixelInactiveBlueId = ModLoader.addOverride("/terrain.png", "/mod/pixelInactiveBlue.png");
        texturePixelInactiveGreenId = ModLoader.addOverride("/terrain.png", "/mod/pixelInactiveGreen.png");
        texturePixelInactiveYellowId = ModLoader.addOverride("/terrain.png", "/mod/pixelInactiveYellow.png");
        
        ModLoader.addRecipe(new ItemStack(mod_Pixel.blockPixel, 1,pixelRedId), new Object[] {
          " D ", " G ", " R ", Character.valueOf('D'), new ItemStack(Item.dyePowder, 1, 1), Character.valueOf('G'), Block.glass, Character.valueOf('R'), Item.redstone
     } );
        
        ModLoader.addRecipe(new ItemStack(mod_Pixel.blockPixel, 1,pixelBlueId), new Object[] {
          " D ", " G ", " R ", Character.valueOf('D'), new ItemStack(Item.dyePowder, 1, 4), Character.valueOf('G'), Block.glass, Character.valueOf('R'), Item.redstone
     } );
      
        ModLoader.addRecipe(new ItemStack(mod_Pixel.blockPixel, 1,pixelGreenId), new Object[] {
          " D ", " G ", " R ", Character.valueOf('D'), new ItemStack(Item.dyePowder, 1, 2), Character.valueOf('G'), Block.glass, Character.valueOf('R'), Item.redstone
     } );
     
        ModLoader.addRecipe(new ItemStack(mod_Pixel.blockPixel, 1,pixelYellowId), new Object[] {
          " D ", " G ", " R ", Character.valueOf('D'), new ItemStack(Item.dyePowder, 1, 11), Character.valueOf('G'), Block.glass, Character.valueOf('R'), Item.redstone
     } );
       
      }
     public String getVersion()
         {
                 // TODO Auto-generated method stub
                 return null;
         }
        
        
         public void load() {
                 // TODO Auto-generated method stub
                 
         }
        
         public String Version()
         {
               return "1.1.0";
         }
 }
